﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using IDAL;
using Model;

namespace BLL
{
    public class BlotScrew : BaseService<BlotScrewInfo>
    {
        private static readonly IBlotScrew dal = DALFactory.DataAccess.CreateBlotScrew();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<BlotScrewInfo> GetBlotScrewsbySN(string productSN)
        {
            return dal.GetBlotScrewsbySN(productSN);
        }

        public IList<BlotScrewInfo> GetBlotScrewsbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetBlotScrewsbyDT(starttime, stoptime);
        }
    }
}
